package com.maxlen.goods.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maxlen.goods.entity.SkuInfoEntity;
import com.maxlen.goods.entity.to.SpuAndSkuTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sku信息
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 09:43:29
 */
@Mapper
public interface SkuInfoDao extends BaseMapper<SkuInfoEntity> {

    List<SpuAndSkuTO.SkuBySpuIdTO> getSkuIdAndSpuId(@Param("skuIdList") List<Long> skuIdList);

    List<SkuInfoEntity> getSkuInfoBySkuIdList(@Param("skuIdList") List<Long> skuIdList);
}
